<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnColorInStepCategoryTable extends AbstractMigration
{
    public function up()
    {
        $this->table('step_category')
            ->addColumn('color', 'char', ['default' => '#000000', 'null' => false, 'limit' => 7, 'comment' => '工序分类颜色'])
            ->save();
    }

    public function down()
    {
        $this->table('step_category')
            ->removeColumn('color')
            ->save();
    }
}
